#ifndef COREDEFINE_H
#define COREDEFINE_H

#define MADI_MSG	100
#define ATTACH		101
#define DUAL		102
#define CID		103

#define DCOL		(char)29
#define DROW		(char)18

#define RAW		'8'
#define BASE64		'B'
#define QP		'Q'
#define MAX_LINE_LEN	1024

#define DOWNLINK	"download.cgi"

#ifdef WIN32
#define  DDIR		'\\'
#else
#define DDIR		'/'
#endif

#endif

#define MSGINFO_FLAG_SEEN		"FLAG_SEEN"
#define MSGINFO_FLAG_PRIORITY		"FLAG_PRIORITY"
#define MSGINFO_FLAG_ATTACHED		"FLAG_ATTACHED"
#define MSGINFO_FLAG_ANSWERED		"FLAG_ANSWERED"
#define MSGINFO_FLAG_FORWARED		"FLAG_FORWARED"
#define MSGINFO_FLAG_RECENT		"FLAG_RECENT"
#define MSGINFO_FLAG_DELETED		"FLAG_DELETED"
#define MSGINFO_FLAG_DRAFT		"FLAG_DRAFT"
#define MSGINFO_FROM			"FROM"
#define MSGINFO_TO			"TO"
#define MSGINFO_SUBJECT			"SUBJECT"
#define MSGINFO_RDATE			"RDATE"
#define MSGINFO_SDATE			"SDATE"
#define MSGINFO_SIZE			"MSGSIZE"
#define MSGINFO_CC			"CC"
#define MSGINFO_BCC			"BCC"
#define MSGINFO_MSG_ID			"MSGID"
#define MSGINFO_REFERENCE		"REF"
#define MSGINFO_RESERVEPATH		"RESERVEPATH"

// key map in system.cfg
#define SYSCFG_DOMAINNAME		"domainname"
#define SYSCFG_HOSTNAME			"hostname"
#define SYSCFG_HOSTIP			"hostip"

// key map in web.cfg
#define WEBCFG_SMTPIP			"smtpip"
#define WEBCFG_CIPHERKEY		"cipherkey"
#define WEBCFG_BASE_USR_DIR		"base_user_dir"
#define WEBCFG_ADMINTEMPLATEROOT	"admin_template_root"
#define WEBCFG_USRTEMPLATEROOT		"usr_template_root"
#define WEBCFG_ADMINDOCUMENTROOT	"admin_document_root"
#define WEBCFG_DOCUMENTROOT		"document_root"
#define WEBCFG_ALIAS			"alias"
#define WEBCFG_PORT			"port"
#define WEBCFG_LOGDIR			"logdir"
#define WEBCFG_LOGLEVEL			"loglevel"
